Search the reference...
/
method
Calls dir.closeSync() if the directory handle is open, and returns undefined.
dir.closeSync()
undefined